//
//  ListCollectionViewCell.m
//  XiangCaoJiaYuan
//
//  Created by tongj on 2017/8/24.
//  Copyright © 2017年 tongj. All rights reserved.
//

#import "ListCollectionViewCell.h"

@implementation ListCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)setModel:(ListprizeModel *)model
{
    self.Name.text = model.user_nickname;
    NSString *str2 = [NSString stringWithFormat:@"%@",model.user_image];

    [self.headImage sd_setImageWithURL:[NSURL URLWithString:str2] placeholderImage:[UIImage imageNamed:@"抽奖记录_03.png"]];
    if (model.receive_flag==1) {
        self.statusImage.image = [UIImage imageNamed:@"抽奖记录_09.png"];
    }else{
        self.statusImage.image = [UIImage imageNamed:@"抽奖记录_07.png"];

    }
    self.headImage.userInteractionEnabled = YES;
    self.headImage.clipsToBounds = YES;
    self.headImage.layer.cornerRadius = 20;

}
@end
